#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin >> n;
    if(n%2==1){
	cout << -1 << endl; return 0;}
    vector<int> v;
    while(n>0){
	int p=1;
	while(p*2<=n)
	    p*=2;
	v.push_back(p);
	n-=p;
    }
    for(int i=0;i<v.size();i++)
	cout << v[i] << " ";
    cout<<endl;
    return 0;
}
